using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class Interventional_TreatmentMap : EntityTypeConfiguration<Interventional_Treatment>
    {
        public Interventional_TreatmentMap()
        {
            // Primary Key
            this.HasKey(t => t.LT_ID);

            // Properties
            this.Property(t => t.patient_id)
                .HasMaxLength(20);

            this.Property(t => t.create_by)
                .HasMaxLength(20);

            this.Property(t => t.LT_CSD_Therapy)
                .HasMaxLength(50);

            this.Property(t => t.LT_StartTime)
                .HasMaxLength(50);

            this.Property(t => t.LT_EndTime)
                .HasMaxLength(50);

            this.Property(t => t.LT_Surgeon)
                .HasMaxLength(20);

            this.Property(t => t.LT_Assistant)
                .HasMaxLength(20);

            this.Property(t => t.LT_Premedication)
                .HasMaxLength(100);

            this.Property(t => t.LT_Intubation_ways)
                .HasMaxLength(50);

            this.Property(t => t.LT_Puncture_site)
                .HasMaxLength(50);

            this.Property(t => t.LT_AVCDP_Specific_detail)
                .HasMaxLength(50);

            this.Property(t => t.LT_being_treated_lesion_Num)
                .HasMaxLength(50);

            this.Property(t => t.LT_being_treated_detail)
                .HasMaxLength(50);

            this.Property(t => t.LT_Stenting)
                .HasMaxLength(50);

            this.Property(t => t.LT_Bracket_Num)
                .HasMaxLength(50);

            this.Property(t => t.LT_Bracket_Num_detail)
                .HasMaxLength(50);

            this.Property(t => t.LT_DES)
                .HasMaxLength(50);

            this.Property(t => t.LT_DES_detail)
                .HasMaxLength(50);

            this.Property(t => t.LT_BMS)
                .HasMaxLength(50);

            this.Property(t => t.LT_BMS_detail)
                .HasMaxLength(50);

            this.Property(t => t.LT_Conclusion_success_of)
                .HasMaxLength(50);

            this.Property(t => t.LT_IntubationWaysAndMeans)
                .HasMaxLength(50);

            this.Property(t => t.LT_Anesthesia)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("Interventional_Treatment");
            this.Property(t => t.LT_ID).HasColumnName("LT_ID");
            this.Property(t => t.patient_id).HasColumnName("patient_id");
            this.Property(t => t.follow_up_id).HasColumnName("follow_up_id");
            this.Property(t => t.create_time).HasColumnName("create_time");
            this.Property(t => t.create_by).HasColumnName("create_by");
            this.Property(t => t.LT_CSD_Therapy).HasColumnName("LT_CSD_Therapy");
            this.Property(t => t.LT_Date).HasColumnName("LT_Date");
            this.Property(t => t.LT_StartTime).HasColumnName("LT_StartTime");
            this.Property(t => t.LT_EndTime).HasColumnName("LT_EndTime");
            this.Property(t => t.LT_Surgeon).HasColumnName("LT_Surgeon");
            this.Property(t => t.LT_Assistant).HasColumnName("LT_Assistant");
            this.Property(t => t.LT_Premedication).HasColumnName("LT_Premedication");
            this.Property(t => t.LT_Intubation_ways).HasColumnName("LT_Intubation_ways");
            this.Property(t => t.LT_Puncture_site).HasColumnName("LT_Puncture_site");
            this.Property(t => t.LT_AVCDP_Specific_detail).HasColumnName("LT_AVCDP_Specific_detail");
            this.Property(t => t.LT_being_treated_lesion_Num).HasColumnName("LT_being_treated_lesion_Num");
            this.Property(t => t.LT_being_treated_detail).HasColumnName("LT_being_treated_detail");
            this.Property(t => t.LT_Stenting).HasColumnName("LT_Stenting");
            this.Property(t => t.LT_Bracket_Num).HasColumnName("LT_Bracket_Num");
            this.Property(t => t.LT_Bracket_Num_detail).HasColumnName("LT_Bracket_Num_detail");
            this.Property(t => t.LT_DES).HasColumnName("LT_DES");
            this.Property(t => t.LT_DES_detail).HasColumnName("LT_DES_detail");
            this.Property(t => t.LT_BMS).HasColumnName("LT_BMS");
            this.Property(t => t.LT_BMS_detail).HasColumnName("LT_BMS_detail");
            this.Property(t => t.LT_Conclusion_success_of).HasColumnName("LT_Conclusion_success_of");
            this.Property(t => t.LT_IntubationWaysAndMeans).HasColumnName("LT_IntubationWaysAndMeans");
            this.Property(t => t.LT_Anesthesia).HasColumnName("LT_Anesthesia");
        }
    }
}
